home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsIPKCS11Module.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  130 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPKCS11Module.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPKCS11Module_h__
  6. #define __gen_nsIPKCS11Module_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIPKCS11Slot; /* forward declaration */
  18.  
  19. class nsIEnumerator; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIPKCS11Module */
  23. #define NS_IPKCS11MODULE_IID_STR "8a44bdf9-d1a5-4734-bd5a-34ed7fe564c2"
  24.  
  25. #define NS_IPKCS11MODULE_IID \
  26.   {0x8a44bdf9, 0xd1a5, 0x4734, \
  27.     { 0xbd, 0x5a, 0x34, 0xed, 0x7f, 0xe5, 0x64, 0xc2 }}
  28.  
  29. class NS_NO_VTABLE nsIPKCS11Module : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPKCS11MODULE_IID)
  33.  
  34.   /* readonly attribute wstring name; */
  35.   NS_IMETHOD GetName(PRUnichar * *aName) = 0;
  36.  
  37.   /* readonly attribute wstring libName; */
  38.   NS_IMETHOD GetLibName(PRUnichar * *aLibName) = 0;
  39.  
  40.   /* nsIPKCS11Slot findSlotByName (in wstring name); */
  41.   NS_IMETHOD FindSlotByName(const PRUnichar *name, nsIPKCS11Slot **_retval) = 0;
  42.  
  43.   /* nsIEnumerator listSlots (); */
  44.   NS_IMETHOD ListSlots(nsIEnumerator **_retval) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIPKCS11MODULE \
  50.   NS_IMETHOD GetName(PRUnichar * *aName); \
  51.   NS_IMETHOD GetLibName(PRUnichar * *aLibName); \
  52.   NS_IMETHOD FindSlotByName(const PRUnichar *name, nsIPKCS11Slot **_retval); \
  53.   NS_IMETHOD ListSlots(nsIEnumerator **_retval); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIPKCS11MODULE(_to) \
  57.   NS_IMETHOD GetName(PRUnichar * *aName) { return _to GetName(aName); } \
  58.   NS_IMETHOD GetLibName(PRUnichar * *aLibName) { return _to GetLibName(aLibName); } \
  59.   NS_IMETHOD FindSlotByName(const PRUnichar *name, nsIPKCS11Slot **_retval) { return _to FindSlotByName(name, _retval); } \
  60.   NS_IMETHOD ListSlots(nsIEnumerator **_retval) { return _to ListSlots(_retval); } 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIPKCS11MODULE(_to) \
  64.   NS_IMETHOD GetName(PRUnichar * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  65.   NS_IMETHOD GetLibName(PRUnichar * *aLibName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLibName(aLibName); } \
  66.   NS_IMETHOD FindSlotByName(const PRUnichar *name, nsIPKCS11Slot **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindSlotByName(name, _retval); } \
  67.   NS_IMETHOD ListSlots(nsIEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ListSlots(_retval); } 
  68.  
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71.  
  72. /* Header file */
  73. class nsPKCS11Module : public nsIPKCS11Module
  74. {
  75. public:
  76.   NS_DECL_ISUPPORTS
  77.   NS_DECL_NSIPKCS11MODULE
  78.  
  79.   nsPKCS11Module();
  80.  
  81. private:
  82.   ~nsPKCS11Module();
  83.  
  84. protected:
  85.   /* additional members */
  86. };
  87.  
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(nsPKCS11Module, nsIPKCS11Module)
  90.  
  91. nsPKCS11Module::nsPKCS11Module()
  92. {
  93.   /* member initializers and constructor code */
  94. }
  95.  
  96. nsPKCS11Module::~nsPKCS11Module()
  97. {
  98.   /* destructor code */
  99. }
  100.  
  101. /* readonly attribute wstring name; */
  102. NS_IMETHODIMP nsPKCS11Module::GetName(PRUnichar * *aName)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* readonly attribute wstring libName; */
  108. NS_IMETHODIMP nsPKCS11Module::GetLibName(PRUnichar * *aLibName)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* nsIPKCS11Slot findSlotByName (in wstring name); */
  114. NS_IMETHODIMP nsPKCS11Module::FindSlotByName(const PRUnichar *name, nsIPKCS11Slot **_retval)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* nsIEnumerator listSlots (); */
  120. NS_IMETHODIMP nsPKCS11Module::ListSlots(nsIEnumerator **_retval)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* End of implementation class template. */
  126. #endif
  127.  
  128.  
  129. #endif /* __gen_nsIPKCS11Module_h__ */
  130.